GrayscaleBitmap Constructor(Byte[],Int32,Int32,Boolean,Boolean,Single,Single)
In This Topic
Initializes a new instance of the
GrayscaleBitmap class and sets the existing pixel data to be read/modified in-place.
Syntax
'Declaration
Public Function New( _
ByVal () As System.Byte, _
ByVal As System.Integer, _
ByVal As System.Integer, _
Optional ByVal As System.Boolean, _
Optional ByVal As System.Boolean, _
Optional ByVal As System.Single, _
Optional ByVal As System.Single _
)
public GrayscaleBitmap(
System.byte[] ,
System.int ,
System.int ,
System.bool ,
System.bool ,
System.float ,
System.float
)
Parameters
- pixelData
- The pixel data to be attached to a GrayscaleBitmap.
- pixelWidth
- The width of the image, in pixels.
- pixelHeight
- The height of the image, in pixels.
- transparencyMask
- If true, the image is used to define an irregularly shaped region of another image.
- whiteIsZero
- If true, specifies that 0 is imaged as white and 255 is imaged as black.
- dpiX
- The horizontal dpi of the image.
- dpiY
- The vertical dpi of the image.
See Also